package com.zzg.dao.impl;

import com.zzg.bean.WorkType;
import com.zzg.dao.WorkTypeDAO;
import com.zzg.util.JDBCUtil;
import org.springframework.stereotype.Repository;

@Repository
public class WorkTypeDAOImpl implements WorkTypeDAO{

	@Override
	public String findWorkTypeById(int id) {
		WorkType workType = JDBCUtil.queryOne(WorkType.class,
				"select * from tb_work_type where work_type_id=?", id);
		return workType.getWork_type_name();
	}

}
